<template>
	<view class="security">
		<view class="su-main">
			<view class="item item-b" v-for="(item, index) in setUpList" :key="index" @click="onSetUp(item, index)">
				<view class="left">{{ item.text }}</view>
				<view class="right"><image src="/static/xs_icon/right3.png" mode="widthFix"></image></view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			setUpList: [{ text: '修改密码', id: '0', arrow: false }]
		};
	},
	onLoad() {},
	methods: {
		// 列表点击事件
		onSetUp(item, index) {
			// console.log(item,index)
			switch (item.id) {
				case '0':
					uni.redirectTo({
						url: '../change-password/change-password'
					});
					break;
			}
		}
	}
};
</script>

<style lang="scss">
@import './security.scss';
</style>
